<?php

namespace admin\controller;
class user extends _base
{
    public function __construct()
    {
        parent::__construct();
        $this->assign('m','user');
        $this->assign('y','user');
    }

    /**
     * @Notes:列表
     * @Interface lists
     * @author: LZH
     * @Time: 2019/6/18   17:30
     */
    public function lists()
    {

        $aParams = array();
        //标题
        if ($nickname = I('nickname')) {
            $aParams['where']['nickname LIKE'] = "%{$nickname}%";
        }
        if ($mobile = I('mobile')) {
            $aParams['where']['mobile'] = $mobile;
        }
        $aParams['page'] = max(1, intval(I('page')));
        $aData = M('user')->page($aParams);
        $this->display('user/user_lists',['aData'=>$aData]);
    }


}

